package com.kefu.boss.mapper;

import com.kefu.boss.model.BossVersion;
import com.kefu.common.mybatis.KefuMapper;
import org.apache.ibatis.annotations.Select;

public interface BossVersionMapper extends KefuMapper<BossVersion> {

    // 根据tenant——id查询处version——id，再根据version——id查询出version——name
    @Select("SELECT version_name FROM boss_version WHERE id = (SELECT version_id FROM sys_tenant WHERE tenant_id = #{tenantId})")
    String selectVersionNameByTenantId(String tenantId);
}
